import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('../views/Index.vue')
    }, {
      path: '/sign',
      name: 'sign',
      component: () => import('../views/user/UserSignPage.vue')
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/BaseCompoent.vue'),
      children: [
        {
          path: '/settings',
          name: 'settings',
          component: () => import('../views/user/UserSettingPage.vue')
        },{
          path: '/system',
          name: 'systemSetting',
          component: () => import('../views/setting/SystemSetting.vue')
        }
      ]
    }
  ],
})

export default router
